/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ALT.create;

import ALT.entities.Entry;
import ALT.entities.Forum;
import ALT.entities.Member;

/**
 *
 * @author Dennis
 */
public class SamCommCreator {

    protected SamCommCreator() {}

    private static SamCommCreator mInstance = null;


    public static SamCommCreator getInstance() {
        if (mInstance == null)
            mInstance = new SamCommCreator();

        return mInstance;
    }

    public Forum createForum(String category, String title) {
        return new Forum(category, title);
    }

    public Member createMember(String nickname, String email, String password) {
        return new Member(nickname, password, email);
    }

    public Entry createEntity(Member member, Forum forum, String title, String text) {
        return new Entry(member, forum, title, text);
    }
}
